<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //构造函数:定义一个类
      function pen (){
            //公有属性
            this.naem=naem;
            this.age=age;
        }
        //公有方法
        pen.prototype.run=function(){
            console.log('funning');
        }
        //静态属性
        pen.do = '12345'
        console.log(pen);
    </script>
</body>
</html>